from listnode import ListNode, ln_to_list, list_to_ln


def merge_two_lists(l1: ListNode, l2: ListNode) -> ListNode:
    return list_to_ln(sorted(ln_to_list(l1) + ln_to_list(l2)))


if __name__ == '__main__':
    res = merge_two_lists(list_to_ln([1, 2, 4]), list_to_ln([1, 3, 4]))
